package com.gyh.bootmybatis.service;

import com.gyh.bootmybatis.dao.EmployeeMapper;
import com.gyh.bootmybatis.entity.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmployeeService {
    @Autowired
    EmployeeMapper employeeMapper;
    public Employee getEmp(Integer empno) {
      return employeeMapper.queryById(empno);
    }
}
